/**
 * @author fenglei.you
 */
Me.TimerTask=function(interval){
	this.interval=interval;
	this.pause=true;
	
	this.startListener=[];
	this.unRegistListener=[];
	this.pausedListener=[];
}
Me.TimerTask.prototype.getInterval=function(){
	return this.interval;
}
Me.TimerTask.prototype.addStartListener=function(callback){
	this.startListener.push(callback);
}
Me.TimerTask.prototype.addPauseListener=function(callback){
	this.pausedListener.push(callback);
}
Me.TimerTask.prototype.addUnRegistListener=function(callback){
	this.unRegistListener.push(callback);
}

Me.TimerTask.prototype.run=function(){
	if(! this.pause){
		this.customeRun();
	}
}
Me.TimerTask.prototype.customeRun=function(){	
}


